package com.bt.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.Date;

@Component
@ConfigurationProperties(prefix = "bt.jwt")
@Data
public class JwtProperties {

    /**
     * 管理端员工生成jwt令牌相关配置
     */
    private String adminSecretKey;  //秘钥
    private Long adminTtl;  //过期时间
    private String adminTokenName; //令牌名称

    /**
     * 用户端生成jwt令牌相关配置
     */
    private String userSecretKey;  //秘钥
    private Long userTtl;   // 过期时间
    private String userTokenName; //令牌名称

}